import 'dart:convert';

import 'package:app/core/utils/helpers/sp.dart';
import 'package:app/page/login/entity/entity_login.dart';
import 'package:get/get.dart';

class MainState {
  RxInt currentIndex;
  RxBool currentStatus;
  RxString userName;

  MainState() {
    currentIndex = 0.obs;
    currentStatus = false.obs;
    userName =
        LoginEntity.fromJson(json.decode(SpUtil.instance.controller.userInfo))
            .user_name
            .obs;
  }
}
